<%--
 *  File:    MDSnapShotLog.jsp
 *  @Author: TerryCui
 *  Date:    2011.1.26

 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>
<%
	String strModuleName = "IMG";
	String privilegeCode = "ALL";
	String contextPath = request.getContextPath();
%>

<%@ include file="/inc/PageDefault.inc" %>

<html>
<head>
<title>MDSnapShotLog</title>
<PageFlow:CheckPageFlow pageName="p_mdsnapshotlog"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath%>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script>
 function page_close(){
	 window.close();
 }
</script>
</head>
<body>
<form name="thisform" method="post" action="<%=contextPath%>/Dispatcher"  target="_parent">
    <input type="hidden" name="pagename" value="p_mdsnapshotlog">
    <input type="hidden" name="actionname">
  <table width="100%" cellspacing="0" border="0" cellpadding="0">
	<tr>
		<td class="summary_top" ></td>
	</tr>
	<tr> 
		<td class="title-big-b-center" colspan="2"><%=pageContext.getAttribute("masterdataname")%><%=label.getLabelName("L_MasterData")%></td>
	</tr>
	<tr>
		<td class="summary_top" ></td>
	</tr>
    <tr> 
      <td> 
        <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
          <tr class="deepblue-left">
            <td class="title_center" width="100px"><%=label.getLabelName("L_RunType")%></td>
            <td class="title_center"><%=label.getLabelName("L_LogDetail")%></td>
            <td class="title_center" width="100px"><%=label.getLabelName("L_LogDate")%></td>
          </tr>
          <%
            Vector alllogs = (Vector)pageContext.getAttribute("alllogs");
            if(alllogs == null)
            	alllogs = new Vector();
            int i = 0;
          %>
          <logic:iterate id="onelog" collection="<%= alllogs %>" indexId="idx"> 
          <%
				HashMap tempMap = (HashMap)pageContext.getAttribute("onelog");
	            String strIsChecked = "";
	            String strClassType="";
	            if(i%2 == 1){
	              	strClassType = "td-listrom";  
	            }else{
	              	strClassType = "";
	            }
	            i++;
	        %>
          <tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull(strClassType)%>'" class="<%=JspHelper.filterNull(strClassType)%>"> 
            <td><custom:write name="onelog" property="runtypename" nbsp="true"/></td>
            <td><custom:write name="onelog" property="messagedesc" nbsp="true"/></td>
            <td><custom:write name="onelog" property="logdate" nbsp="true"/></td>
          </tr>
          </logic:iterate>
        </table>
        <table width="100%" cellspacing="0" cellpadding="0">
          <tr>
          	<td class="summary_top" ></td>
          </tr>
          <tr> 
            <td class="td_center"> 
              <a onclick="page_close();"><custom:button type="1" label="L_Close" border="0" style="width:60"/></a>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>
</body>
</html>
